package com.yxhl.zoume.core.car.model;

import com.yxhl.zoume.common.info.BaseAlphabetEntity;

/**
 * Created by sugarya on 16/8/15.
 */
public class CarSelectPassengerEntity extends BaseAlphabetEntity {

    private String passengerMobile;


    public CarSelectPassengerEntity(String displayContent, String passengerMobile) {
        super(displayContent);
        this.passengerMobile = passengerMobile;
    }

    public CarSelectPassengerEntity(String displayContent) {
        super(displayContent);
    }

    public String getPassengerMobile() {
        return passengerMobile;
    }

    public void setPassengerMobile(String passengerMobile) {
        this.passengerMobile = passengerMobile;
    }

    @Override
    public String toString() {
        return "CarSelectPassengerEntity{" +
                "passengerMobile='" + passengerMobile + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof CarSelectPassengerEntity)) return false;

        CarSelectPassengerEntity that = (CarSelectPassengerEntity) o;

        return getDisplayContent().equals(that.getDisplayContent());

    }

    @Override
    public int hashCode() {
        return getDisplayContent().hashCode() * 13;
    }
}
